package begin;

import bean.AdminBean;
import bean.UserBean;
import javafx.application.Application;
import javafx.stage.Stage;
import view.AdminMenuView;
import view.UserMenuView;

/**
 * @Author 王志康
 * @Date 2021/9/7 10:44
 * @Version 1.0.0
 */
public class AdminMenu extends Application {
    public static AdminBean admin;
    private static Stage stage=new Stage();

    @Override
    public void start(Stage primaryStage) {
        stage.setTitle("丰翼超市购物管理系统");
        gotoAdminMenu();
        primaryStage.show();
    }


    public AdminMenu() {
        try {
            stage = new Stage();
            start(stage);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void gotoAdminMenu() {
        try {
            stage.setScene(AdminMenuView.show());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
